// InputDlg.h: interface for the CInputDlg class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_INPUTDLG_H__CBC6E054_B762_4536_8695_C4099EEDFDA0__INCLUDED_)
#define AFX_INPUTDLG_H__CBC6E054_B762_4536_8695_C4099EEDFDA0__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "resource.h"
#include "SimpleWnd/SimpleWnd.h"
#include "ExecStub.h"

class CInputDlg : public CDialog
{
public:
	BEGIN_MSG_MAP(CInputDlg)
		MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog)
		MESSAGE_HANDLER(WM_DESTROY, OnDestroy)
		COMMAND_ID_HANDLER(IDCANCEL, OnCancel)
		COMMAND_ID_HANDLER(IDOK, OnOK)
	END_MSG_MAP()

	DIALOG_ID(IDD_INPUT)

public:
	CInputDlg();
	virtual ~CInputDlg();

    void SetPromptText(char* szPrompt);

protected:
	LRESULT OnInitDialog(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
	LRESULT OnDestroy(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled);
	LRESULT OnOK(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);
	LRESULT OnCancel(WORD wNotifyCode, WORD wID, HWND hWndCtl, BOOL& bHandled);

public:
    char    m_szInput[INPUT_SIZE];
    char*   m_szPrompt;
};

#endif // !defined(AFX_INPUTDLG_H__CBC6E054_B762_4536_8695_C4099EEDFDA0__INCLUDED_)
